package fhp.hlhj.giantfold.presenter

import fhp.hlhj.giantfold.interfaces.ITaoBao
import fhp.hlhj.giantfold.module.TaoBaoModule

/**
 * author: FHP
 * data: on 2017\11\29 0029 15:42
 * E-Mail: 103945089@qq.com
 */
class TaoBaoPresenter(private val iTaoBao: ITaoBao) :BasePresenter<ITaoBao>() {
    private var taoBaoModule = TaoBaoModule()
    override fun fetchData() {
        iTaoBao.showLoading()
        taoBaoModule.getData {
            iTaoBao.showData(taoBaoModule.datas)
        }
        taoBaoModule.getHeadData {
            iTaoBao.showHeadData(taoBaoModule.headDatas)
        }
    }
}
